<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Try .NET</title>
</head>

<body>
    <h1>Try .NET</h1>
    <!-- <iframe class="editor" id="default-iframe" title="在线代码编辑器" src="https://try.dot.net"></iframe> -->
    <iframe src="https://try.dot.net/?fromGist=df44833326fcc575e8169fccb9d41fc7">
    </iframe>
</body>

<script>
    window.onload = function() {
        function setCodeFromGist() {
            var message = {
                type: "setWorkspaceFromGist",
                gistId: "df44833326fcc575e8169fccb9d41fc7",
                bufferId: "FibonacciGenerator.cs"
            };

            postMessageToEditor(message);
        }

        function postMessageToEditor(message) {
            document.getElementById("example-iframe").contentWindow
                .postMessage(message, "https://try.dot.net");
        }
        //setCodeFromGist();
    }
</script>

</html>